import React, { lazy } from "react"

const Home = lazy(() =>import('../views/home'))
const About = lazy(() =>import('../views/about'))
const Picture = lazy(() =>import('../views/picture'))


const routes = [
  {
    path:'/',
    element:<Home />
  },
  {
    path:'/home',
    element:<Home />,
    meta:{
      title:'首页'
    }
  },
  {
    path:'/about',
    element:<About />
  },
  {
    path:'/picture',
    element:<Picture /> 
  }
]

export default routes